package es.ats.codington.festival.mappers;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import es.ats.codington.festival.domain.Park;
import es.ats.codington.festival.domain.Place.Zone;



public class ParkMapper implements RowMapper<Park>{

	@Override
	public Park mapRow(ResultSet resultSet, int numRow) throws SQLException {
		Park park = new Park();
		

		park.setIdPlace(resultSet.getInt("idPlace"));
		park.setPlaceName(resultSet.getString("placeName"));
		park.setZone(Zone.SOUTH);
		park.setparkName(resultSet.getString("ParkName"));
			
			
		return park;
	}

}
